//
//  GFBaseModel.m
//  GoodFood
//
//  Created by dllo on 15/10/28.
//  Copyright © 2015年 荣伟峰. All rights reserved.
//

#import "GFBaseModel.h"

@implementation GFBaseModel
+ (id)modWithDic:(NSDictionary *)dic {
    GFBaseModel *mod = [[[self class] alloc]init];
    [mod setValuesForKeysWithDictionary:dic];
    return mod;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        
        self.kill_id = value;
    } else if ([key isEqualToString:@"description"]){
        
        self.descri = value;
    }
}
@end
